<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
		<title>BlackStar Monitor&amp;Profile System</title>
		<script type="text/javascript" src="/static/js/jquery.min.js"></script>
		<script type="text/javascript" src="/static/js/highcharts.js"></script>
		<!--[if IE]>
			<script type="text/javascript" src="/static/js/excanvas.compiled.js"></script>
		<![endif]-->		
		<script type="text/javascript">
		$(document).ready(function() {
			var chart = new Highcharts.Chart({
				chart: {
					renderTo: 'container',
					defaultSeriesType: 'spline',
					margin: [50, 150, 60, 80]
				},
				title: {
					text: '${jvmid} ${monitortype} Chart',
					style: {
						margin: '10px 100px 0 0' // center it
					}
				},
				xAxis: {
					type: 'datetime'
				},
				yAxis: {
					title: {
						text: '${unit}'
					},
					plotLines: [{
						value: 0,
						width: 0,
						color: '#808080'
					}]
				},
				plotOptions: {
					spline: {
						lineWidth: 1,
						marker: {
							enabled: false
						},
						pointInterval: 300000, // 5minute
						
						states: {
							hover: {
								marker: {
									enabled: true,
									symbol: 'circle',
									radius: 2,
									lineWidth: 1
								}
							}
						}
					}
				},

				tooltip: {
					formatter: function() {
			                return this.y;
					}
				},
				legend: {
					layout: 'vertical',
					style: {
						left: 'auto',
						bottom: 'auto',
						right: '10px',
						top: '100px'
					}
				},
				series: [{
					name: '${preday}',
					data: [${predaydata}]
				}, {
					name: '${queryday}',
					data: [${querydayData}]
				}]
			});
			
			
		});
		</script>
		
	</head>
	<body>
		<div id="container" style="width: 800px; height: 400px; margin: 0 auto"></div>	
	</body>
</html>
